import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { router } from './configs/router'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


const app = createApp(App)
const state = createPinia()
state.use(piniaPluginPersistedstate);

app.use(ElementPlus, { locale: zhCn })
app.use(router)
app.mount('#app')
app.use(state)